package com.czk.provider;

import java.util.HashMap;
import java.util.Map;

/**
 * 本地注册
 *
 * @Author:ChenZhangKun
 * @Date: 2021/4/14 16:46
 */
public class LocalRegister {
    private static Map<String, Class> map = new HashMap<>(16);

    public static void register(String interfaceName, Class implClass) {
        map.put(interfaceName, implClass);
    }

    public static Class get(String interfaceName) {
        return map.get(interfaceName);
    }
}
